package main

import (
	"basic-go/src/arrays"
	"fmt"
	"math/rand"
	"time"
)

func main() {

	rand.Seed(time.Now().UnixNano())

	count := 6

	arr := make([]int, count)

	for i := 0; i < count; i++ {
		arr[i] = rand.Intn(1000)
	}

	fmt.Println(arr)

	// 插入排序
	arrays.InsertSort(arr)

	// 排序后结果
	fmt.Println(arr)
}
